<%-- 
    Document   : list
    Created on : 2012-9-6, 1:09:09
    Author     : 松鼠M
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<fmt:setTimeZone scope="session" var="tz" value="Asia/Shanghai" />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>机票 Page</title>
        <style>
            table td, table th {padding: 3px 5px; text-align: center;}
        </style>
    </head>
    <body>

        <table border="1">
            <tr>
                <th>编号</th>
                <th>抓取时间</th>
                <th>2012-09-29</th>
                <th>2012-09-30</th>
                <th>2012-10-01</th>
                <th>2012-10-06</th>
                <th>2012-10-07</th>
            </tr>
            <c:forEach items="${jipiaos}" var="jipiao">
                <tr>
                    <td>${jipiao.id}</td>
                    <td><fmt:formatDate value="${jipiao.fetchTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
                    <c:forEach items="${jipiao.minPrice}" var="price">
                        <td>${price}</td>
                    </c:forEach>
                </tr>
            </c:forEach>
        </table>

    </body>
</html>
